<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="org.leon.pojo.Resume" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
    <title>Login</title>
    <script src="http://libs.baidu.com/jquery/2.1.4/jquery.min.js"></script>
    <script type="text/javascript">

    </script>
</head>
<body>
<base href="<%=basePath%>">
<div style="width: 80%; margin:auto;">
    <div>
        <a href="user/logout">退出</a>
    </div>
    <div style="text-align: center;">
        <h1>编辑简历</h1>
        <%
            Object obj = request.getAttribute("resume");
            Integer id = 0;
            String name = "";
            String phone = "";
            String address = "";
            if (obj != null) {
                Resume resume = (Resume) obj;
                id = resume.getId();
                name = resume.getName();
                phone = resume.getPhone();
                address = resume.getAddress();
            }
        %>
        <form action="resume/edit" method="post">
            <input type="hidden" name="id" value="<%=id%>"/>
            姓名：<input type="text" name="name" value="<%=name%>"/> <br>
            电话：<input type="text" maxlength="11" name="phone" value="<%=phone%>"/> <br>
            地址：<input type="text" name="address" value="<%=address%>"> <br>

            <input type="submit" value="提交"/>
        </form>
    </div>

</div>

</body>
</html>
